/*    */ package com.newcrm.bean;
/*    */ 
/*    */ import java.util.regex.Matcher;
/*    */ import java.util.regex.Pattern;
/*    */ 
/*    */ public class ExtInfo
/*    */ {
/* 10 */   public int id = 0;
/* 11 */   public int type = -1;
/* 12 */   public String info1 = null;
/* 13 */   public String info2 = null;
/* 14 */   public String info3 = null;
/* 15 */   public String info4 = null;
/*    */ 
/*    */   public boolean isMobile() {
/* 18 */     if ((this.info1 == null) || (this.info1.trim().length() == 0)) {
/* 19 */       return false;
/*    */     }
/*    */ 
/* 22 */     String regExp = "^[1]([3][0-9]{1}|59|58|88|89)[0-9]{8}$";
/* 23 */     Pattern p = Pattern.compile(regExp);
/* 24 */     Matcher m = p.matcher(this.info1);
/* 25 */     return m.find();
/*    */   }
/*    */ 
/*    */   public int getId() {
/* 29 */     return this.id;
/*    */   }
/*    */ 
/*    */   public int getType() {
/* 33 */     return this.type;
/*    */   }
/*    */ 
/*    */   public String getInfo1() {
/* 37 */     if ((this.info1 == null) || (this.info1.length() == 0)) {
/* 38 */       return "";
/*    */     }
/*    */ 
/* 41 */     if ((this.type == 4) && 
/* 42 */       (this.info1.trim().toLowerCase().startsWith("http://"))) {
/* 43 */       String website = this.info1.trim();
/* 44 */       website = website.substring(7);
/* 45 */       return website;
/*    */     }
/*    */ 
/* 49 */     return this.info1;
/*    */   }
/*    */ 
/*    */   public String getInfo2() {
/* 53 */     return this.info2;
/*    */   }
/*    */ 
/*    */   public String getInfo3() {
/* 57 */     return this.info3;
/*    */   }
/*    */ 
/*    */   public String getInfo4() {
/* 61 */     return this.info4;
/*    */   }
/*    */ }

/* Location:           C:\E\referenceProject\CRM参考\qikebao\WEB-INF\lib\qikebao.jar
 * Qualified Name:     com.newcrm.bean.ExtInfo
 * JD-Core Version:    0.6.1
 */